<%@ page import="java.util.List"%>
<%@ page import="gmusic.ma.bo.ArtistMABean"%>

<jsp:include page="include/entete.jsp" flush="true">
	<jsp:param name="titre" value="Metal Archives" />
	<jsp:param name="sousTitre" value="Rechercher des artists a ajouter" />
</jsp:include>

<%
	List<ArtistMABean> artists = (List<ArtistMABean>) session
			.getAttribute("artists");
%>

<div class="table">
<table border="0" width="100%">
	<thead>
		<tr class="thead">
			<th>MAID</th>
			<th>Nom</th>
			<th>Ajout</th>
		</tr>
	</thead>
	<tfoot>
		<tr class="tfoot">
			<td colspan="3"><%=artists.size()%> enregistrement(s)</td>
		</tr>
	</tfoot>
	<tbody>
		<%
			String[] ligneCouleur = new String[] { "ligne1", "ligne2" };
			for (int i = 0; i < artists.size(); i++) {
		%>
		<tr class="<%=ligneCouleur[i % 2]%>">
			<td width="80">[<%=artists.get(i).getMaid()%>]</td>
			<td><%=artists.get(i).getNom()%></td>
			<td><a
				href="AjouterArtisteMA.gm?maid=<%=artists.get(i).getMaid()%>">Add</a></td>
		</tr>
		<%
			}
		%>
	</tbody>
</table>
</div>

<jsp:include page="include/piedPage.jsp" flush="true" />